package com.dongdongshop.em;

import jdk.nashorn.internal.ir.debug.PrintVisitor;

public enum ResultEnum {
    SUCCESS(10000,"操作成功"),
    ERROR(10001,"操作失败"),
    NOLOGIN(10002,"没有登录"),
    ERRORPWD(10003,"密码错误"),
    ARGS_ERROE(10004,"参数异常"),
    ERROEUSER(10005,"您未注册"),
    WAITPASS(10006,"待审核"),
    NULLPASSWORD(10007,"密码为空"),
    NULLUSER(10008,"用户名为空"),
    NOPASS(10009,"未通过"),
    OVERUNAME(10010,"已注册"),
    NULLPHONE(10011,"手机号为空"),
    ERRORCODE(10012,"短信验证码不正确,请重新输入"),
    NULLCODE(10013,"短信验证码为空"),
    ERRORTWOPASSWORD(10014,"两次密码不一致"),
    SALE_OVER(10015,"商品已售空");
    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
